package com.api.shuigui.service.impl;

import com.api.shuigui.pojo.DocContent;
import com.api.shuigui.pojo.PageBean;
import com.api.shuigui.service.GrayModeService;
import com.wbi.util.Util;
import weaver.conn.RecordSet;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class GrayModeServiceImpl implements GrayModeService {
    @Override
    public Map<String, Object> getData() {
        //处理结果
        Map<String, Object> result = new HashMap<>();
        boolean flag = false;
        RecordSet rst = new RecordSet();
        rst.execute("select status from uf_zhpz where 1=1");
        if(rst.next()){
            String status = Util.null2String(rst.getString("status"));
            if("1".equals(status)){
                flag = true;
            }
        }
        result.put("enable",flag);
        return result;
    }

}
